package com.sky.mapper;

import com.sky.entity.SetmealDish;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 套餐菜品关系 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-07-02
 */
@Mapper
public interface SetmealDishMapper extends BaseMapper<SetmealDish> {

    void insertBatch(@Param("list") List<SetmealDish> setmealDishes);
@Select("SELECT * FROM setmeal_dish where setmeal_id=#{id}")
    List<SetmealDish> selectBySeatmealId(Long id);
}
